﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassWork
{
    class Snack : MenuItem 
    {
        public int Price { get; set; }

        public Snack(int price, string name) 
            : base (name)
        {
            this.Price = price;
            
        }

        public override void PrintToConsole()
        {
            Console.WriteLine("{0} - \tPrice: ${1}", name, Price);
        }

    }
}
